package com.qf.fmall01.controller;

import com.qf.fmall01.service.UserAddrServcie;
import com.qf.fmall01.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("useraddr")
@CrossOrigin
public class UserAddrController {

    @Autowired
    private UserAddrServcie userAddrServcie;

    @RequestMapping(value = "list",method = RequestMethod.GET)
    public ResultVO list(Integer userId){
       return userAddrServcie.listAddrByUserId(userId);
    }

}
